Skip to content

Support messenger-lite as meta_platform#71

Merged
radon-at-beeper merged 1 commit intomainfrom
rr-messengerlite-support
Jan 27, 2026
Merged

Support messenger-lite as meta_platform#71
radon-at-beeper merged 1 commit intomainfrom
rr-messengerlite-support

Conversation

@radon-at-beeper
Copy link
Contributor

@radon-at-beeper radon-at-beeper commented Jan 27, 2026

This is already supported in the bridge, adding it to the default configuration generator for convenience.

@coderabbitai
Copy link

coderabbitai bot commented Jan 27, 2026

📝 Walkthrough

Summary by CodeRabbit

  • Chores
    • Added messenger-lite as a recognized platform option in Facebook bridge configuration, inheriting the same settings as Messenger integration.
    • Updated platform validation logic to include messenger-lite in meta platform handling.

✏️ Tip: You can customize this high-level summary in your review settings.

Walkthrough

The pull request adds "messenger-lite" as a recognized meta platform variant in the bridge configuration, configuring it to use Facebook bridge settings, while simultaneously marking it as an invalid user-specified platform value in the configuration tool.

Changes

Cohort / File(s) Summary
Messenger-lite platform support
bridgeconfig/meta.tpl.yaml, cmd/bbctl/config.go
Added "messenger-lite" to the conditional block in template configuration to use Facebook bridge settings (CommandPrefix, BridgeTypeName, BridgeTypeIcon). Also extended the invalid meta platform exclusion list in the configuration validation logic to include "messenger-lite".

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title 'Support messenger-lite as meta_platform' directly and specifically describes the main change—adding support for messenger-lite in the configuration and validation logic.
Description check ✅ Passed The description 'This is already supported in the bridge, adding it to the default configuration generator for convenience' accurately explains the purpose and context of the changeset.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch rr-messengerlite-support

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
cmd/bbctl/config.go (1)

74-85: Auto-detection may incorrectly infer messenger instead of messenger-lite.

The auto-detection logic at lines 78-79 checks if bridgeName contains "messenger" and sets metaPlatform = "messenger". Since "messenger-lite" also contains "messenger", a bridge named something like sh-messenger-lite would be auto-detected as messenger rather than messenger-lite.

Consider adding an explicit check for "messenger-lite" before the "messenger" check:

Suggested fix
 		if strings.Contains(bridgeName, "facebook-tor") || strings.Contains(bridgeName, "facebooktor") {
 			metaPlatform = "facebook-tor"
 		} else if strings.Contains(bridgeName, "facebook") {
 			metaPlatform = "facebook"
+		} else if strings.Contains(bridgeName, "messenger-lite") || strings.Contains(bridgeName, "messengerlite") {
+			metaPlatform = "messenger-lite"
 		} else if strings.Contains(bridgeName, "messenger") {
 			metaPlatform = "messenger"
 		} else if strings.Contains(bridgeName, "instagram") {

@radon-at-beeper radon-at-beeper merged commit 5207472 into main Jan 27, 2026
11 checks passed
@radon-at-beeper radon-at-beeper deleted the rr-messengerlite-support branch January 27, 2026 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants